#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"
void SLtest1() {
	SLNode* plist = NULL;
	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	SLPushBack(&plist, 5);
	SLPushBack(&plist, 6);
	SLPrint(plist);

	SLPushFront(&plist, 6);
	SLPrint(plist);

}
void SLtest2() {
	SLNode* plist = NULL;
	SLPushBack(&plist, 1);
	SLPushBack(&plist, 2);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	SLPushBack(&plist, 5);
	SLPrint(plist);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLPushFront(&plist, 5);
	SLPushFront(&plist, 6);
	SLPrint(plist);
	SLNode* pos = SLFind(plist,1);
	SLInsert(&plist, pos, 66);
	SLPrint(plist);
	SLNode* pos1 = SLFind(plist, 6);
	SLInsertAfter(pos1, 67);
	SLPrint(plist);
	SLNode* pos2 = SLFind(plist, 66);
	SLErase(&plist, pos2);
	SLPrint(plist);
	SLNode* pos3= SLFind(plist, 6);
	SLEraseAfter(pos3);
	SLPrint(plist);



}
int main() {
	SLtest2();
	return 0;
}